import request from './request'


export const approvePost = (postId) => {
    return request.post(`/review/pass/${postId}`)
  }
  
  export const rejectPost = (postId, reason) => {
    return request.post(`/review/fail/${postId}`, null, {
      params: { reason }
    })
  }
  export const getPosts = (params) => {
    return request.get('/review/search/list', {
      params
    })
  }